package com.itheima.Test;

public class Demo2 {
    public static void main(String[] args) {
        int[] arr = {1, 3, 2, 7, 8, 9};
        int max = arr[0];
        for(int i = 1;i < arr.length;i++){
            if(arr[i] > max){
                max = arr[i];

            }

        }
        System.out.println("Max："+ max);
    }
}
